const path = require('path');
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');

const webpack = require("webpack");

module.exports = merge(common, {
    mode: 'development',
    devtool: 'cheap-module-source-map', //只会生成行映射
    devServer:{
        // static:{
        //     directory: path.join(__dirname,'/')
        // },
        hot: true,
        port: 9000,
        open:true
    },
    plugins: [],
});